<?php

/**
 * 内涵段子抓包
 */
require_once('../Curl.php');

$Curl = new Curl();
$data = [
	'url'=>'http://m.neihanshequ.com',
	'header'=>[
		'Host:m.neihanshequ.com',
		'Upgrade-Insecure-Requests:1',
		'User-Agent:'.$Curl->agents[1],
		'CLIENT-IP:'.$Curl->ip,
		'X-FORWARDED-FOR:'.$Curl->ip
	],
	'return_type'=>'array'
];
$cookie = $Curl->getCookie($data);
$uuid = $cookie['uuid'];
$csrftoken = $cookie['csrftoken'];
$tt_webid = $cookie['tt_webid'];
$data = [
	'url'=>'http://m.neihanshequ.com/?is_json=1&app_name=neihanshequ_web&min_time='.time().'&csrfmiddlewaretoken='.$csrftoken,
	'header'=>[
		'Host: m.neihanshequ.com',
		'User-Agent:'.$Curl->agents[1],
		'CLIENT-IP:'.$Curl->ip,
		'X-FORWARDED-FOR:'.$Curl->ip,
		'Cookie:uuid='.$uuid.'; skip_guidence=1; tt_webid='.$tt_webid.'; csrftoken='.$csrftoken,
		'Upgrade-Insecure-Requests:1',
		'Referer:http://m.neihanshequ.com/',
		'X-Requested-With:XMLHttpRequest'
	],
];

echo $Curl->post($data);
